package cn.devices.service;

import cn.devices.entity.TbDevice;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */
public interface TbDeviceService {
    int devicesAdd(TbDevice device);

    int devicesUpdate(TbDevice device);

    int deviceCodeUpdate(String deviceCodeOld, String deviceCodeNew);

    int deviceDeleteFalse(String deviceCode);

    PageInfo<TbDevice> tbDeviceList(int pageIndex, int pageSize);

    PageInfo<TbDevice> level3(int pageIndex, int pageSize);

    TbDevice tbDevice(String deviceCode);

    String deviceStatus(String deviceCode);

    List<TbDevice> getNotRegister();

    String maxDeviceCode();

    List<TbDevice> getRegister();
    TbDevice getByCode(String deviceCode);
}
